class LoginController < ApplicationController
  def login
    @user = User.find(:first, :conditions => [ "login_name = ?", params[:name]])
    redirect_to regrete_user unless @user!=nil
    if @user.password == params[:pass] 
      session[:user_id] = @user.id
    end
    redirect_to "/" + determin_layout
  end
  def regrete_user
    
  end
  
end
